<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">

	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
    <ui:param name="compTitle" value="修改用户密码" />

	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
		    <ui:param name="compColumnNum" value="1" />
		    <ui:param name="compLabelStyle" value="40%"/>
		    <ui:param name="compContentStyle" value="60%"/>
		    
			<!-- 第一行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="password" />
				<ui:param name="compBean1Lable" value="原密码：" />
				<ui:param name="compBean1Required" value="true" />
				
				<ui:define name="compBean1Content"> 
					<h:inputSecret id="password" redisplay="true" styleClass="{required:true,maxlength:16}" value="#{pageViewBean.password}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="newPassword" />
				<ui:param name="compBean1Lable" value="新密码：" />
				<ui:param name="compBean1Required" value="true" />
				
				<ui:define name="compBean1Content"> 
					<h:inputSecret id="newPassword" redisplay="true" styleClass="{required:true,maxlength:16}" value="#{pageViewBean.newPassword}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="rePassword" />
				<ui:param name="compBean1Lable" value="确认密码：" />
				<ui:param name="compBean1Required" value="true" />
				
				<ui:define name="compBean1Content">
					<h:inputSecret id="rePassword" styleClass="{required:true,equalTo:'#{commonContentViewBean.id}_form:newPassword',maxlength:16}" redisplay="true" />
				</ui:define>
			</ui:decorate>
			
		</ui:decorate>
		
	</ui:define>
	
	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{orgAction.psnPwd}" title="保存"
			onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
			oncomplete="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden value="#{pageViewBean.id}" />
		</p:commandButton>
		
		 <p:commandButton title="关闭" type="button"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/cancel.png" value="关闭" style="margin:5px;">
		</p:commandButton>
	</ui:define>
</ui:composition>